Nevron Open Vision Documentation
Nevron.Nov Namespace / NAggregatePromise Class / Any Method / Any(INIterable<INPromise>) Method


In This Topic
    Any(INIterable<INPromise>) Method
    In This Topic
    The Any method takes an array of promises, and returns a single promise that fulfills with the result of the first promise that is fulfilled. If no promises fulfill (i.e. all of the promises are rejected), then the returned promise is rejected with an AggregateException, that groups together the individual exceptions. Essentially, this method is the opposite of the All method.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function Any( _
       ByVal promises As INIterable(Of INPromise) _
    ) As NPromise(Of Object)
    'Usage
     
    
    Dim promises As INIterable(Of INPromise)
    Dim value As NPromise(Of Object)
     
    value = NAggregatePromise.Any(promises)

    Parameters

    promises
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also